package com.veeder.datacollection.rs232.response;

import java.util.ArrayList;
import java.util.List;

import com.veeder.datacollection.alarm.Alarm;

public class AlarmList extends RS232Response {

	private List<Alarm> alarms = new ArrayList<Alarm>();

	private String stationHdr1 = "";

	private String stationHdr2 = "";

	private String stationHdr3 = "";

	private String stationHdr4 = "";

	public List<Alarm> getAlarms() {
		return alarms;
	}

	public void addAlarm(Alarm alarm){
		if(alarm==null){
			return;
		}
		alarms.add(alarm);
	}
	
	
	public String getStationHdr1() {
		return stationHdr1;
	}

	public void setStationHdr1(String stationHdr1) {
		this.stationHdr1 = stationHdr1;
	}

	public String getStationHdr2() {
		return stationHdr2;
	}

	public void setStationHdr2(String stationHdr2) {
		this.stationHdr2 = stationHdr2;
	}

	public String getStationHdr3() {
		return stationHdr3;
	}

	public void setStationHdr3(String stationHdr3) {
		this.stationHdr3 = stationHdr3;
	}

	public String getStationHdr4() {
		return stationHdr4;
	}

	public void setStationHdr4(String stationHdr4) {
		this.stationHdr4 = stationHdr4;
	}
	
	public int alarmSize(){
		return alarms.size();
	}
	
}
